export class Rect {
    constructor(
        public minX: number,
        public maxX: number,
        public minY: number,
        public maxY: number
    ) {}
    contain({ x, y }: { x: number; y: number }) {
        if (x > this.minX && x < this.maxX && y > this.minY && y < this.maxY)
            return true;
        return false;
    }
}
